<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>在线翻译</title>
		<link rel="stylesheet" href="style.css" />
		<!--bootstrap  样式-->
		<link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css" />
		<!--字体图标样式-->
		<link href="https://cdn.bootcss.com/font-awesome/5.8.2/css/all.css" rel="stylesheet">
	</head>

	<body>
		<header>
			<div class="jumbotron jumbotron-fluid">
				<div class="container text-center">
					<div class="container">
						<h1 class="display-4">翻译</h1>
						<p class="lead">中英互译</p>
					</div>
				</div>
			</div>
		</header>

		<div class="container">
			<div class="row justify-content-between mb-3">
				<div class="col-md-3">
					<div class="btn-group btn-block" role="group" aria-label="Basic example" id="btn_if">
						<!--disabled="disabled"   被禁用的 input 元素既不可用，也不可点击-->
						<button type="button" class="btn btn-primary" disabled="disabled">中文</button>
						<button type="button" class="btn btn-light" disabled="disabled">英文</button>
					</div>
				</div>
				<div class="col-md-3">
					<button type="button" class="btn btn-secondary btn-block" onclick="swap()">
						<i class="fas fa-arrows-alt-h"></i>
					</button>
				</div>
				<div class="col-md-3">
					<div class="btn-group btn-block" role="group" aria-label="Basic example" id="btn_that">
						<button type="button" class="btn btn-primary" disabled="disabled">英文</button>
						<button type="button" class="btn btn-light" disabled="disabled">中文</button>
					</div>
				</div>
			</div>
		</div>
		<div class="container">
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<textarea class="form-control" rows="5" id="text_if"></textarea>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<!--readonly="readonly"   可以防止用户对值进行修改-->
						<textarea class="form-control" rows="5" readonly="readonly" placeholder="翻译" id="text_that"></textarea>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-md-3">
					<button type="button" class="btn btn-primary btn-lg btn-block" onclick="res()">翻译</button>
				</div>
			</div>
		</div>
		<script src="script.js"></script>
	</body>

</html>